home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 06 - 1990 / 06.06 Jun 90 / XCMD Source / WindowCommands.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-05  |  1.5 KB  |  44 lines  |  [TEXT/KAHL]

  1. /********************************/
  2. /* File: WindowCommands.h        */
  3. /*                                 */
  4. /* Prototypes and data declares    */
  5. /* for windowing system            */
  6. /*                                */
  7. /********************************/
  8.  
  9. #define        INSTALL_CMD        0            /* Install the window handlers            */
  10. #define        OPEN_CMD        1            /* open window with the params            */
  11. #define        CLOSE_CMD        2            /* close the window with name            */
  12. #define        SHOW_CMD        3            /* show window by name                    */
  13. #define        HIDE_CMD        4            /* hide window by name                    */
  14. #define        ADD_CMD            5            /* Move window on the screen            */
  15. #define        DELETE_CMD        6            /* Draw contents of window                */
  16. #define        CLEAR_CMD        7            /* clear out the contents of the window    */
  17. #define        REMOVE_CMD        8            /* respond to mouseup in window            */
  18.  
  19.  
  20. #define        PASS_CMD        -1            /* pass request back to caller            */
  21. #define        IN_FRONT        -1L
  22. #define        GO_AWAY            1
  23. #define        NO_GO_AWAY        0
  24.  
  25. #define        WIND_GLOBALS    'winf'        /* resource type for window info record    */
  26. #define        WIND_ID            128            /* reosource id of this element.        */
  27.  
  28. /*** Traps we patch        ***/
  29. #define     EVENT_TRAP       0xA970
  30.  
  31. /*** Exec reources for trap patches    ***/
  32. #define        EVENT_EXEC        1000
  33.  
  34.  
  35.  
  36. /*** Window Commands    ***/
  37. long    do_init( void );
  38. long    do_remove( XCmdBlockPtr paramPtr, wdGlobalsPtr windH );
  39. long    do_open( char *name, XCmdBlockPtr paramPtr,    wdGlobalsPtr windP );
  40. long    do_close(char *name, XCmdBlockPtr paramPtr,    wdGlobalsPtr windP );
  41. long    do_show( char *name, XCmdBlockPtr paramPtr,    wdGlobalsPtr windP );            
  42. long    do_hide( char *name, XCmdBlockPtr paramPtr, wdGlobalsPtr windP );
  43. long    do_draw( char *name, XCmdBlockPtr paramPtr, wdGlobalsPtr windP );
  44.